<template>
    <div class="bigBox">
        <div class="contentBox">
            <div class="allItemBox">
                <div class="itemBox" v-for="i in list">
                    <div class="leftBox">
                        <el-image style="width: 150px; height: 150px" src="/src/views/home/images/bg_1.jpg" />
                    </div>
                    <div class="rightBox">
                        <h3>首页-分类</h3>
                        <p>date,type,click,crack</p>
                        <div class="info">
                            <span class="text-ellipsis">tellcxzcxzxxxxxxxxxxxxxxxi
                                cxzxzcxzxzcpsisinfoellipsisinfoellipsisinfoellipsisinfoellipsisinfoellipsisinfoellipsisinfoellipsisinfo
                                text-ellipsisinfo text-ellipsisinfotext-ellipsisinfo text- text-ellipsidsasdas
                            </span>
                        </div>
                    </div>
                </div>
            </div>
            <nav aria-label="Page navigation example">
                <ul class="pagination justify-content-center">
                    <li class="page-item disabled">
                        <a class="page-link"><el-icon>
                                <DArrowLeft />
                            </el-icon></a>
                    </li>
                    <li class="page-item"><a class="page-link" href="#">1</a></li>
                    <li class="page-item"><a class="page-link" href="#">2</a></li>
                    <li class="page-item"><a class="page-link" href="#">3</a></li>
                    <li class="page-item">
                        <a class="page-link" href="#"><el-icon>
                                <DArrowRight />
                            </el-icon></a>
                    </li>
                </ul>
            </nav>
        </div>
    </div>
</template>

<script>
import { ref } from "vue"
export default {
    data() {
        return {
            list: 10
        }
    },
    created() {
        this.list = 10
        console.log(this.list);
    },
    methods: {
        load() {
            this.list += 10
        }
    },
    watch: {
    }
}
</script>
<style scoped>
/* @import url(); 引入css类 */
p {
    margin: 0px;
}

.bigBox {
    display: flex;
}

.contentBox {
    width: 70%;
}

.selectBox {
    width: calc(100% - 70%);
}

.allItemBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 70px;
}

.itemBox {
    display: flex;
    flex-direction: row;
    width: 80%;
    height: 150px;
    margin-bottom: 20px;
    box-sizing: border-box;
    position: relative;
}

.leftBox {
    width: 180px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: auto 0px;
}

.rightBox {
    padding-left: 1em;
    width: 100%;
}

.info {
    text-indent: 2em;
    height: 50px;
    width: 100%;
    word-break: break-all;
}

.selectBox {
    padding-top: 70px;
}

.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

@media (max-width: 1030px) {
    .selectBox {
        display: none;
    }

    .contentBox {
        width: 100%;
    }
}
</style>